package com.partsoft.dits.ldap;

import java.beans.PropertyEditorSupport;

/**
 * 用于Spring的配置文件装配定义支持
 */
public class LdapBindAuthenticationTypeEditorSupport extends PropertyEditorSupport {

	public LdapBindAuthenticationTypeEditorSupport() {
	}
	
	@Override
	public void setAsText(String text) throws IllegalArgumentException {
		setValue(LdapBindAuthenticationType.fromName(text));
	}

}
